package com.lumiclass.myapplication3

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.MotionEvent
import android.view.View

class MainActivity : AppCompatActivity() {
    private val mTag = javaClass.simpleName
    @SuppressLint("ClickableViewAccessibility")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
//        findViewById<View>(R.id.mView).setOnTouchListener { v, event ->
//            Log.d(mTag, "setOnTouchListener")
//            return@setOnTouchListener false
//        }
    }

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        Log.d(mTag, "dispatchTouchEvent")
        return super.dispatchTouchEvent(ev)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        Log.d(mTag, "onTouchEvent")
        return super.onTouchEvent(event)
    }
}